package groupb6.shopsystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import groupb6.shopsystem.pojo.entity.Complaint;
import groupb6.shopsystem.pojo.entity.Product;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ComplaintMapper extends BaseMapper<Complaint> {
    @Insert("INSERT INTO tb_complaint (user_id, content, status) " +
            "VALUES (#{user_id}, #{content}, #{status})")
    void insertComplaint(Integer user_id, String content, Integer status);
}
